<?php
session_start();

if (empty($_SESSION['usuario'])) {
    header('Location: ../index.html');
} else {
    if ($_SESSION['cargo'] != 'laboratorista') {
        header("Location: ../modulos/" . $_SESSION['cargo'] . ".php");
    }
}
?>

<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>Laboratorista</title>
        <link rel="stylesheet" href="../librerias_js/foundation/css/normalize.css" />
        <link rel="stylesheet" href="../librerias_js/foundation/css/foundation.css" />
        <script src="../librerias_js/foundation/js/vendor/jquery.js"></script>
        <script src="../librerias_js/foundation/js/foundation.min.js"></script>
        <link rel="stylesheet" href="../estilos/override.css" />
        <script src="../librerias_js/foundation/js/foundation/foundation.forms.js"></script>
        <script src="../auxiliar/validaciones.js"></script>
    </head>
    <body>
        <nav class="top-bar">
            <ul class="title-area">
                <li class="name">
                    <h1><a><?php echo ucfirst($_SESSION['cargo']) . ": " . $_SESSION['nombre_completo']; ?></a></h1>
                </li>

            </ul>
            <section class="top-bar-section">
                <ul class="left">

                    <li class="has-dropdown not-click">
                        <a href="#">Exámenes</a>
                        <ul class="dropdown">
                            <li class="">
                                <a onclick="cargarFormNuevoExamen();">Agregar</a>
                            </li>
                            <li class="">
                                <a onclick="cargarListadoExamenes();">Modificar</a>
                            </li>
                            <li class="">
                                <a onclick="cargarListadoExamenesBaja();">Deshabilitar</a>
                            </li>
                        </ul>
                    </li>
                    <li class="has-dropdown not-click">
                        <a href="#">Solicitud de Exámenes</a>
                        <ul class="dropdown">
                            <li class="">
                                <a onclick="cargarFormNuevoSolicitudExamen();">Agregar</a>
                            </li>
                            <li class="">
                                <a onclick="cargarListadoSolicitudExamenes();">Pendientes</a>
                            </li>
                            <li class="">
                                <a onclick="cargarListadoEntregaExamenes();">Entregado</a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <ul class="right">

                    <li class="">
                        <a href="../logout.php">Salir</a>
                    </li>
                </ul>
            </section>
        </nav>
        <div class="row">
            <div id="cont_dinamico" class="large-12 columns"></div>
        </div>
    </body>
</html>